package me.aip.mov;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

@MapperScan("me.aip.mov.mapper")
@ComponentScan("me.aip")
@SpringBootApplication
@EnableCaching
//@EnableScheduling
public class MovApplication {

    public static void main(String[] args) {
        SpringApplication.run(MovApplication.class, args);
    }

    //自创建RestTemplate
    @Bean
    public static RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
